import React, { Component } from 'react'

import '../assets/styles/input.less'

export default class Input extends Component {
    render() {
        return (
            <div className='inputs'>
                <i className={this.props.type === 'text' ? 'iconfont icon-shouji' : 'iconfont icon-icon2'}></i>
                <input type={this.props.type === 'text' ? 'text' : 'password'} />
            </div>
        )
    }
}
